Break common network code in xen-network-common.sh, and common vif hotplugging
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 21 Oct 2005 11:06:17 +0000 (12:06 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 21 Oct 2005 11:06:17 +0000 (12:06 +0100)
commite5edf96441c161d4b9593cbfc7e0a7e019e972ce
tree8335898d324aefd40bdb39b3f6e46048f4a315bb
parentfb22028e119ab7422cf19b76ed3e56ee66ba703a
Break common network code in xen-network-common.sh, and common vif hotplugging
code into vif-common.sh.

Fix the antispoofing in network-bridge to allow forwarding from physical
device to bridge, and vif0.0 to eth0.

Change the interface between netback driver and vif hotplugging scripts.  The
mac address and bridge details are read from the store directly by the script,
so that the kernel driver does not need to get involved.

Remove an awful lot of cruft from vif-bridge.  Move the iptables handling into
vif-common.sh, and fix it so that the new vif can get past the antispoofing
entries.  Merge vif-nat and vif-route into this structure too.

Use ip instead of ifconfig to get necessary details.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c
tools/examples/Makefile
tools/examples/network-bridge [changed mode: 0644->0755]
tools/examples/vif-bridge
tools/examples/vif-common.sh [new file with mode: 0644]
tools/examples/vif-nat
tools/examples/vif-route
tools/examples/xen-hotplug-common.sh
tools/examples/xen-network-common.sh [new file with mode: 0644]